export const AddNotesReducer = (prevState = [], action) => {
    let { type, payload } = action

    switch (type) {
        case "addNote":
            let newState = prevState
            newState = newState.concat(payload)
            return newState
        default:
            return prevState
    }
}